package com.zhny.aiot.pressure.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class PressureEntry extends StoreEntity {

    @PropertyValue(alias = "压力",description = "压力值",unit = "mpa",icon=IconConstract.Pressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double pressure;


    @Override
    public String toString() {
        return String.format("pressure value %.2f",pressure);
    }
}
